package com.zking.frame.ZC;

import java.awt.Container;//获取最大的面板
import java.awt.Cursor;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.GridLayout;
import java.awt.Image;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;

import javax.swing.ImageIcon;
import javax.swing.JButton;//按钮
import javax.swing.JComboBox;//下拉框
import javax.swing.JFrame;
import javax.swing.JLabel;//标签
import javax.swing.JScrollPane;//滚动面板
import javax.swing.JTextField;
import javax.swing.WindowConstants;
import javax.swing.border.Border;
import javax.swing.border.EmptyBorder;
import javax.swing.border.TitledBorder;
import javax.swing.table.DefaultTableCellRenderer;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.JTableHeader;

import com.zking.frame.LYK.HomepageJframe;
import com.zking.frame.LYK.SelectSeatJframe;
import com.zking.frame.TJ.mySpace;
import com.zking.frame.TL.Films;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.EventQueue;
import javax.swing.JPanel;
public class CinemaSelectFrame extends JFrame implements MouseListener {

	private JPanel contentPane;//最大的容器面板
	private JPanel biggest_pl;//最大的面板
	private JPanel second_pl;//第二大的面板
	private JPanel top_pl;//顶部上面板
	private JPanel topBottom_pl;//顶部的下面板
	private JPanel bottom_pl;//底部面板
	private JPanel bottomOver_pl;//底部上面板
	private JPanel bottomMiddle_pl;//底部中面板
	private JPanel bottomXia_pl;//底部下面板
	private  JLabel logopic;
	private  JLabel city;//选择城市
	private  JLabel homepage;//首页跳转按钮
	private  JLabel film;//影视页面跳转按钮
	private  JLabel cinema;//电影院页面调转按钮
	private  JLabel personData;
	private  JLabel out;
	private JLabel address_lb;//地址标签
	private JLabel addressMsg_lb;
	private JLabel phone_lb;//电话标签
	private JLabel phoneMsg_lb;
	private JLabel more_lb;//更多标签
	private JLabel moreMsg_lb;//更多信息标签
	private JLabel cinemaCity_lb;//影城名字标签 
	private JLabel tppmv_lb;//淘票票影城图片标签
	private JLabel xuanzuogoupiao_lb;
	private JLabel buy_lb;//选座购票图片
	private JLabel select_lb;//选择图片
	private JLabel yewen_lb;
	private JLabel bangexiju_lb;
	private JLabel xingqiudazhan_lb;
	private JLabel tejindui_lb;
	private JLabel yunzhidao_lb;
	private JLabel today_lb;

	private JLabel mvImg_lb;//电影图片标签
	private JLabel mvName_lb;//电影名标签
	private JLabel director_lb;//导演
	private JLabel directorMsg_lb;
	private JLabel zhujue_lb;//主角
	private JLabel zhujueMsg_lb;//主角
	private JLabel type_lb;//电影类型
	private JLabel typeMsg_lb;//电影类型
	private JLabel madeCountry_lb;//制作国家地区
	private JLabel madeCountryMsg_lb;//制作国家地区
	private JLabel language_lb;//语言
	private JLabel languageMsg_lb;//语言
	private JLabel playdaohanglan_lb;//播放导航信息
	private JLabel playImg_lb;//最下边播放信息图片

	private  ImageIcon taopiaopiao2_img;
	private  ImageIcon select_img;
	private  ImageIcon mv_img;
	private  ImageIcon daohanglan_img;
	private  ImageIcon playMsg_img;
	private  ImageIcon buy_img;
	
	private  String MvName[]= new String[5];
	private String director[] = new String[5];
	private String zhujue[] = new String[5];
	private String type[] = new String[5];
	private String madeCountry[] = new String[5];
	private String language[] = new String[5];
	private String mvImg[] = new String[5];

	/**
	 * Launch the application.
	 */


	/**
	 * Create the frame.
	 */
	public CinemaSelectFrame(String cinemaName) {

		Container contentPane= getContentPane();
		contentPane.setLayout(null);
		//顶部面板
		top_pl = new JPanel();
		top_pl.setLayout(null);
		top_pl.setBounds(0, 0, 1500, 90);
		top_pl.setBackground(Color.WHITE);

		//首页logo图片
		ImageIcon logo=new ImageIcon("imges/logo.png");

		logopic=new JLabel(logo);
		logopic.setBounds(60,0,logo.getIconWidth(),logo.getIconHeight());
		top_pl.add(logopic);
		//首页城市选择
		city=new JLabel("湘潭") ;
		city.setBounds(250, 10, 70, 40);
		city.setFont(new Font("楷体", Font.CENTER_BASELINE, 30));
		top_pl.add(city);
		//首页按钮
		homepage=new JLabel("首页");
		homepage.setBounds(360, 10, 70, 40);
		homepage.setFont(new Font("楷体", Font.CENTER_BASELINE, 20));
		homepage.addMouseListener(this);
		top_pl.add(homepage);

		//回到影视页面按钮
		film=new JLabel("影片");
		film.setBounds(480, 10, 70, 40);
		film.setFont(new Font("楷体", Font.CENTER_BASELINE, 20));
		film.addMouseListener(this);
		top_pl.add(film);
		//回到影院的按钮
		cinema=new JLabel("影院");
		cinema.setBounds(590, 10, 70, 40);
		cinema.setFont(new Font("楷体", Font.CENTER_BASELINE, 20));
		cinema.setForeground(Color.RED);
		cinema.addMouseListener(this);
		top_pl.add(cinema);
		//个人中心

		personData=new JLabel("个人中心 |");
		personData.setBounds(1230, 10, 120, 40);
		personData.setFont(new Font("楷体", Font.CENTER_BASELINE, 20));
		personData.addMouseListener(this);
		top_pl.add(personData);

		//退出
		out=new JLabel("退出");
		out.setBounds(1350, 10, 70, 40);
		out.setFont(new Font("楷体", Font.CENTER_BASELINE, 20));
		top_pl.add(out);




		//第二个大面板,就是将整个面板分为顶部导航栏和下部影院影片以及售票情况
		topBottom_pl = new JPanel();
		topBottom_pl.setLayout(null);
		topBottom_pl.setBackground(new Color(76,76,76));
		topBottom_pl.setBounds(0, 0, 1500, 340);

		//影院标签
		String addressMsg[] = new String[4];//存储地址的数组
		String phoneMsg[] = new String[4];//存储电话号码的地址
		String cinema[] = new String[4];
		//影院名字
		cinema[0] ="韶山城市影院";
		cinema[1] ="湘潭谷岸影城";
		cinema[2] ="万达影城";
		cinema[3] ="芒果时代影城";
		//影院地址信息
		addressMsg[0] = "韶山市清溪镇英雄路文艺馆韶山城市";
		addressMsg[1] = "湘潭县云湖桥镇北岸村楠竹山敬贤路";
		addressMsg[2] = "湘潭县易俗河镇凤凰中路步步高广场";
		addressMsg[3] = "湘潭县易俗河镇凤凰中路凯旋国际";
		//
		phoneMsg[0] = "17369284211";
		phoneMsg[1] = "17369284212";	
		phoneMsg[2] = "17369284213";
		phoneMsg[3] = "17369284214";
		MvName[0]="叶问4";
		MvName[1]="半个喜剧";
		MvName[2]="星球大战";
		MvName[3]="特警队";
		MvName[4]="只有云知道";
				
		director[0]="叶伟信";
		director[1]="周申 , 刘露";
		director[2]=" J·J·艾布拉姆斯";
		director[3]="丁晟";
		director[4]="冯小刚";
		
		zhujue[0] = "甄子丹,吴樾,吴建豪,斯科特·阿特金斯,李宛妲";
		zhujue[1] = "任素汐 , 吴昱翰 , 刘迅 ,汤敏 ,赵海燕 ,刘宸翎";
		zhujue[2] = "凯丽·费雪,马克·哈米尔,亚当·德赖弗,黛茜·雷德利,约翰·波耶加,奥斯卡·伊萨克";
		zhujue[3] = "凌潇肃,贾乃亮,金晨,张云龙";
		zhujue[4] = "黄轩,杨采钰,徐帆,莉迪亚·佩克汉冯小刚";
		
		type[0] = "动作,剧情,传记";
		type[1] = "喜剧 / 爱情";
		type[2] = "动作,冒险,奇幻";
		type[3] = "动作";
		type[4] = "剧情,爱情";
				
		madeCountry[0] = "中国香港";
		madeCountry[1] = "中国大陆";
		madeCountry[2] = "美国";
		madeCountry[3] = "中国大陆";
		madeCountry[4] = "中国大陆";
		
		language[0] = "粤语,汉语普通话";
		language[1] = "汉语普通话";
		language[2] = "英语";
		language[3] = "粤语,汉语普通话";
		language[4] = "粤语,汉语普通话";
		mvImg[0]="yewen.png";
		mvImg[1]="bangexiju.png";
		mvImg[2]="xingqiudazhan.png";
		mvImg[3]="tejindui.png";
		mvImg[4]="yunzhidao.png";
		
		cinemaCity_lb =  new JLabel(cinemaName,JLabel.CENTER);
		cinemaCity_lb.setBounds(60, 16,200,50);
		cinemaCity_lb.setFont(new Font("楷体",Font.PLAIN,24));
		cinemaCity_lb.setForeground(Color.WHITE);
		taopiaopiao2_img = new ImageIcon(CinemaFrame.class.getResource("taopiaopiao2.png"));
		Image image=taopiaopiao2_img.getImage(); 
		image = image.getScaledInstance(this.getWidth()-50, this.getHeight()-50, Image.SCALE_DEFAULT);
		taopiaopiao2_img.setImage(image);
		//上半部电影信息标签

		//淘票票电影标签

		tppmv_lb = new JLabel(taopiaopiao2_img );
		tppmv_lb.setBounds(60, 76, 327, 233);

		address_lb = new JLabel("详细地址：");
		address_lb.setFont(new Font("",Font.PLAIN,14));
		address_lb.setForeground(Color.WHITE);
		address_lb.setBounds(424,81, 75, 23);

		addressMsg_lb = new JLabel(addressMsg[0] );
		addressMsg_lb.setFont(new Font("",Font.PLAIN,14));
		addressMsg_lb.setForeground(Color.WHITE);
		addressMsg_lb.setBounds(499,81, 200, 23);

		phone_lb = new JLabel("联系方式：");
		phone_lb.setFont(new Font("",Font.PLAIN,14));
		phone_lb.setForeground(Color.WHITE);
		phone_lb.setBounds(424,154, 75, 23);

		phoneMsg_lb = new JLabel(phoneMsg[0]);
		phoneMsg_lb.setFont(new Font("",Font.PLAIN,14));
		phoneMsg_lb.setForeground(Color.WHITE);
		phoneMsg_lb.setBounds(499,154, 160, 23);

		more_lb = new JLabel("更多信息：");
		more_lb.setFont(new Font("",Font.PLAIN,14));
		more_lb.setForeground(Color.WHITE);
		more_lb.setBounds(424,200, 75, 23);

		moreMsg_lb = new JLabel("交通信息");
		moreMsg_lb.setFont(new Font("",Font.PLAIN,14));
		moreMsg_lb.setForeground(Color.WHITE);
		moreMsg_lb.setBounds(499,200, 75, 23);
		//顶部下边面板
		topBottom_pl.add(more_lb 	);
		topBottom_pl.add(address_lb);
		topBottom_pl.add(phone_lb);
		topBottom_pl.add(tppmv_lb);
		topBottom_pl.add(cinemaCity_lb);
		topBottom_pl.add(moreMsg_lb 	);
		topBottom_pl.add(addressMsg_lb);
		topBottom_pl.add(phoneMsg_lb);

		bottom_pl = new JPanel();
		bottom_pl.setLayout(null);		
		bottom_pl.setBounds(0, 340, 1500, 590);//原来位置
//		bottom_pl.setBounds(0, 0, 1500, 910);//向上一栋390个像素
		bottom_pl.setBackground(Color.WHITE);

		xuanzuogoupiao_lb = new JLabel("选座购票",JLabel.CENTER);
		xuanzuogoupiao_lb.setBounds(67, 0, 82, 51);
		xuanzuogoupiao_lb.setFont(new Font("楷体",Font.PLAIN,24));
		xuanzuogoupiao_lb.setFont(new Font("楷体",Font.BOLD,18));

		bottom_pl.add(xuanzuogoupiao_lb);
		bottomOver_pl = new JPanel();
		bottomOver_pl.setLayout(null);
		bottomOver_pl.setBounds(60, 51, 1240, 128);
		bottomOver_pl.setBackground(new Color(255,246,245));

		select_img = new ImageIcon(CinemaFrame.class.getResource("select.png"));
		select_lb = new JLabel(select_img);
		select_lb.setBounds(0, 0, 112, 128);

		//下边电影点击的标签

		yewen_lb = new JLabel(MvName[0],JLabel.CENTER);
		yewen_lb .setFont(new Font("",Font.PLAIN,15));
		yewen_lb.setBounds(141, 19, 98, 32);
		yewen_lb.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));//鼠标移入
		yewen_lb.addMouseListener(this);

		bangexiju_lb = new JLabel(MvName[1],JLabel.CENTER);
		bangexiju_lb.setFont(new Font("",Font.PLAIN,15));
		bangexiju_lb.setBounds(341, 19, 98, 32);
		bangexiju_lb.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));//鼠标移入
		bangexiju_lb.addMouseListener(this);

		//星球大战标签
		xingqiudazhan_lb = new JLabel(MvName[2],JLabel.CENTER);
		xingqiudazhan_lb.setFont(new Font("",Font.PLAIN,15));
		xingqiudazhan_lb.setBounds(541, 19, 98, 32);
		xingqiudazhan_lb.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));//鼠标移入
		xingqiudazhan_lb.addMouseListener(this);

		//特警队标签
		tejindui_lb = new JLabel(MvName[3],JLabel.CENTER);
		tejindui_lb.setFont(new Font("",Font.PLAIN,15));
		tejindui_lb.setBounds(741, 19, 98, 32);
		tejindui_lb.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));//鼠标移入
		tejindui_lb.addMouseListener(this);

		//只有云知道标签
		yunzhidao_lb = new JLabel(MvName[4],JLabel.CENTER);
		yunzhidao_lb.setFont(new Font("",Font.PLAIN,15));
		yunzhidao_lb.setBounds(941, 19, 98, 32);
		yunzhidao_lb.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));//鼠标移入
		yunzhidao_lb.addMouseListener(this);

		//今天的标签
		today_lb = new JLabel("今天",JLabel.CENTER);
		today_lb.setFont(new Font("",Font.PLAIN,15));
		today_lb.setBounds(141, 79, 98, 32);
		today_lb.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));//鼠标移入
		today_lb.addMouseListener(this);

		//底部的最顶部面板
		bottomOver_pl.add(select_lb);
		bottomOver_pl.add(yewen_lb);
		bottomOver_pl.add(bangexiju_lb);
		bottomOver_pl.add(xingqiudazhan_lb);
		bottomOver_pl.add(tejindui_lb);
		bottomOver_pl.add(yunzhidao_lb);
		bottomOver_pl.add(today_lb);

		//底部的中部面板

		bottomMiddle_pl = new JPanel();
		bottomMiddle_pl.setBounds(60, 179, 1240, 212);
		bottomMiddle_pl.setLayout(null);
		bottomMiddle_pl.setBackground(Color.WHITE);

		mv_img = new ImageIcon(CinemaFrame.class.getResource(mvImg[0]));
		mvImg_lb = new JLabel(mv_img);//下部面板电影图片标签
		mvImg_lb.setBounds(25, 0, 152, 200);
		mvName_lb = new JLabel(MvName[0]);//下部面板电影名字标签
		mvName_lb.setFont(new Font("",Font.PLAIN,20));
		mvName_lb.setBounds(225, 5, 196, 30);
		mvName_lb.setForeground(Color.RED);



		//电影图片的信息标签
		director_lb = new JLabel("导演：");
		director_lb.setBounds(225, 40, 60, 20);
		director_lb.setFont(new Font("",Font.PLAIN,15));
		directorMsg_lb = new JLabel(director[0]);
		directorMsg_lb.setFont(new Font("",Font.PLAIN,15));
		directorMsg_lb.setBounds(275, 40, 80, 20);

		zhujue_lb = new JLabel("主演：");
		zhujue_lb.setFont(new Font("",Font.PLAIN,15));
		zhujue_lb.setBounds(225, 75, 60, 20);
		zhujueMsg_lb = new JLabel(zhujue[0]);
		zhujueMsg_lb.setFont(new Font("",Font.PLAIN,15));
		zhujueMsg_lb.setBounds(275, 75,300, 20);

		type_lb = new JLabel("类型：");
		type_lb.setFont(new Font("",Font.PLAIN,15)); 
		type_lb.setBounds(225, 110, 60, 20);

		typeMsg_lb = new JLabel(type[0]);
		typeMsg_lb.setFont(new Font("",Font.PLAIN,15));
		typeMsg_lb.setBounds(275, 110,120, 20);

		madeCountry_lb = new JLabel("制作国家/地区：");
		madeCountry_lb.setFont(new Font("",Font.PLAIN,15));
		madeCountry_lb.setBounds(225, 145, 120, 20);

		madeCountryMsg_lb = new JLabel(madeCountry[0]);
		madeCountryMsg_lb.setFont(new Font("",Font.PLAIN,15));
		madeCountryMsg_lb.setBounds(340, 145, 80, 20);

		language_lb = new JLabel("语言：");
		language_lb.setFont(new Font("",Font.PLAIN,15));
		language_lb.setBounds(225, 180, 50, 20);

		languageMsg_lb = new JLabel(language[0]);
		languageMsg_lb.setFont(new Font("",Font.PLAIN,15));
		languageMsg_lb.setBounds(275, 180, 150, 20);

		bottomMiddle_pl.add(director_lb);
		bottomMiddle_pl.add(directorMsg_lb);
		bottomMiddle_pl.add(zhujue_lb);
		bottomMiddle_pl.add(zhujueMsg_lb);
		bottomMiddle_pl.add(type_lb);
		bottomMiddle_pl.add(typeMsg_lb);
		bottomMiddle_pl.add(madeCountry_lb);
		bottomMiddle_pl.add(madeCountryMsg_lb );
		bottomMiddle_pl.add(language_lb);
		bottomMiddle_pl.add(languageMsg_lb);
		bottomMiddle_pl.add(mvImg_lb);
		bottomMiddle_pl.add(mvName_lb);

		//底部最下边面板
		bottomXia_pl = new JPanel();
		bottomXia_pl.setBounds(0, 391, 1500, 212);
		bottomXia_pl.setLayout(null);
		bottomXia_pl.setBackground(Color.WHITE);
		daohanglan_img = new ImageIcon(CinemaSelectFrame.class.getResource("daohanglan.png"));
		//厅室以及票价的图片和标签
		playMsg_img = new ImageIcon(CinemaSelectFrame.class.getResource("playMsg.png"));
		playdaohanglan_lb = new JLabel(daohanglan_img);//播放导航信息
		playdaohanglan_lb.setBounds(60, 0, 1240,50);
		playImg_lb = new JLabel(playMsg_img);//最下边播放信息图片	
		playImg_lb.setBounds(60, 50, 976, 75);
		//选座标签
		buy_img = new ImageIcon(CinemaSelectFrame.class.getResource("buy.png"));
		buy_lb = new JLabel(buy_img);
		buy_lb.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));			
		buy_lb.setBounds(1124, 70, 162,42);
		buy_lb.addMouseListener(this);
		//底部的最下部面板
		bottomXia_pl.add(buy_lb);
		bottomXia_pl.add(playdaohanglan_lb);
		bottomXia_pl.add(playImg_lb);
		bottom_pl.add(bottomOver_pl);
		bottom_pl.add(bottomMiddle_pl);
		bottom_pl.add(bottomXia_pl);

		second_pl = new JPanel();
		second_pl.setLayout(null);
		second_pl.setBounds(0, 90, 1500, 910);
		second_pl.add(topBottom_pl);// 暂时移除顶部下边面板
		second_pl.add(bottom_pl);

		//最大的面板
		biggest_pl = new JPanel();
		biggest_pl.setLayout(null);
		biggest_pl.setBounds(0, 0, 1500, 1000); 
		contentPane.add(biggest_pl);		 
		biggest_pl.add(top_pl);
		biggest_pl.add(second_pl );

		setTitle("淘票票");
		setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
		setSize(1500, 1000);
		setLocationRelativeTo(null);
		setVisible(true);

	}


	@Override
	public void mouseClicked(MouseEvent e) {
		// TODO Auto-generated method stub
		Object obj =e.getSource();
		//如果鼠标点击的是叶问标签
		//我这里通过移除面板再次重新添加组件来实现面板重绘
		
		if(obj==homepage) {
			dispose();
			new HomepageJframe();
		}
		else if(obj==film) {
			dispose();
			new Films();
		}
		
		else if(obj==personData) {
			dispose();
			new mySpace();
		}
		else if(obj==out) {
			dispose();
		}
		else if(obj==buy_lb){
			dispose();
			new SelectSeatJframe(mvName_lb.getText(), cinemaCity_lb.getText(), "一号厅");
		}
		else if(obj == yewen_lb) {
			yewen_lb.setOpaque(true);
			yewen_lb.setBackground(new Color(244,36,41));
			yewen_lb.setForeground(Color.WHITE);
			xingqiudazhan_lb.setOpaque(false);
			xingqiudazhan_lb.setForeground(Color.BLACK);
			yunzhidao_lb.setOpaque(false);
			yunzhidao_lb.setForeground(Color.BLACK);
			bangexiju_lb.setOpaque(false);
			bangexiju_lb.setForeground(Color.BLACK);
			tejindui_lb.setOpaque(false);
			tejindui_lb.setForeground(Color.BLACK);
			bottomMiddle_pl.removeAll();//移除该组件上的所有东西
			bottom_pl.repaint();//重绘
			mv_img = new ImageIcon(CinemaFrame.class.getResource(mvImg[0]));
			mvImg_lb = new JLabel(mv_img);//下部面板电影图片标签
			mvImg_lb.setBounds(25, 0, 152, 200);
			mvName_lb = new JLabel(MvName[0]);//下部面板电影名字标签
			mvName_lb.setFont(new Font("",Font.PLAIN,20));
			mvName_lb.setBounds(225, 5, 196, 30);
			mvName_lb.setForeground(Color.RED);
			director_lb = new JLabel("导演：");
			director_lb.setBounds(225, 40, 60, 20);
			director_lb.setFont(new Font("",Font.PLAIN,15));
			directorMsg_lb = new JLabel(director[0]);
			directorMsg_lb.setFont(new Font("",Font.PLAIN,15));
			directorMsg_lb.setBounds(275, 40, 80, 20);

			zhujue_lb = new JLabel("主演：");
			zhujue_lb.setFont(new Font("",Font.PLAIN,15));
			zhujue_lb.setBounds(225, 75, 60, 20);
			zhujueMsg_lb = new JLabel(zhujue[0]);
			zhujueMsg_lb.setFont(new Font("",Font.PLAIN,15));
			zhujueMsg_lb.setBounds(275, 75,300, 20);

			type_lb = new JLabel("类型：");
			type_lb.setFont(new Font("",Font.PLAIN,15)); 
			type_lb.setBounds(225, 110, 60, 20);

			typeMsg_lb = new JLabel(type[0]);
			typeMsg_lb.setFont(new Font("",Font.PLAIN,15));
			typeMsg_lb.setBounds(275, 110,120, 20);

			madeCountry_lb = new JLabel("制作国家/地区：");
			madeCountry_lb.setFont(new Font("",Font.PLAIN,15));
			madeCountry_lb.setBounds(225, 145, 120, 20);

			madeCountryMsg_lb = new JLabel(madeCountry[0]);
			madeCountryMsg_lb.setFont(new Font("",Font.PLAIN,15));
			madeCountryMsg_lb.setBounds(340, 145, 80, 20);

			language_lb = new JLabel("语言：");
			language_lb.setFont(new Font("",Font.PLAIN,15));
			language_lb.setBounds(225, 180, 50, 20);

			languageMsg_lb = new JLabel(language[0]);
			languageMsg_lb.setFont(new Font("",Font.PLAIN,15));
			languageMsg_lb.setBounds(275, 180, 150, 20);

			bottomMiddle_pl.add(director_lb);
			bottomMiddle_pl.add(directorMsg_lb);
			bottomMiddle_pl.add(zhujue_lb);
			bottomMiddle_pl.add(zhujueMsg_lb);
			bottomMiddle_pl.add(type_lb);
			bottomMiddle_pl.add(typeMsg_lb);
			bottomMiddle_pl.add(madeCountry_lb);
			bottomMiddle_pl.add(madeCountryMsg_lb );
			bottomMiddle_pl.add(language_lb);
			bottomMiddle_pl.add(languageMsg_lb);
			bottomMiddle_pl.add(mvImg_lb);
			bottomMiddle_pl.add(mvName_lb);
		}
		//如果鼠标点击的是星球大战标签
		else if(obj == xingqiudazhan_lb) {
			xingqiudazhan_lb.setOpaque(true);
			xingqiudazhan_lb.setBackground(new Color(244,36,41));
			xingqiudazhan_lb.setForeground(Color.WHITE);
			yewen_lb.setOpaque(false);
			yewen_lb.setForeground(Color.BLACK);
			yunzhidao_lb.setOpaque(false);
			yunzhidao_lb.setForeground(Color.BLACK);
			bangexiju_lb.setOpaque(false);
			bangexiju_lb.setForeground(Color.BLACK);
			tejindui_lb.setOpaque(false);
			tejindui_lb.setForeground(Color.BLACK);
			bottomMiddle_pl.removeAll();
			bottom_pl.repaint();
			mv_img = new ImageIcon(CinemaFrame.class.getResource(mvImg[2]));
			mvImg_lb = new JLabel(mv_img);//下部面板电影图片标签
			mvImg_lb.setBounds(25, 0, 152, 200);
			mvName_lb = new JLabel(MvName[2]);//下部面板电影名字标签
			mvName_lb.setFont(new Font("",Font.PLAIN,20));
			mvName_lb.setBounds(225, 5, 196, 30);
			mvName_lb.setForeground(Color.RED);
			director_lb = new JLabel("导演：");
			director_lb.setBounds(225, 40, 60, 20);
			director_lb.setFont(new Font("",Font.PLAIN,15));
			directorMsg_lb = new JLabel(director[2]);
			directorMsg_lb.setFont(new Font("",Font.PLAIN,15));
			directorMsg_lb.setBounds(275, 40, 120, 20);

			zhujue_lb = new JLabel("主演：");
			zhujue_lb.setFont(new Font("",Font.PLAIN,15));
			zhujue_lb.setBounds(225, 75, 60, 20);
			zhujueMsg_lb = new JLabel(zhujue[2]);
			zhujueMsg_lb.setFont(new Font("",Font.PLAIN,15));
			zhujueMsg_lb.setBounds(275, 75,500, 20);

			type_lb = new JLabel("类型：");
			type_lb.setFont(new Font("",Font.PLAIN,15)); 
			type_lb.setBounds(225, 110, 60, 20);

			typeMsg_lb = new JLabel(type[2]);
			typeMsg_lb.setFont(new Font("",Font.PLAIN,15));
			typeMsg_lb.setBounds(275, 110,120, 20);

			madeCountry_lb = new JLabel("制作国家/地区：");
			madeCountry_lb.setFont(new Font("",Font.PLAIN,15));
			madeCountry_lb.setBounds(225, 145, 120, 20);

			madeCountryMsg_lb = new JLabel(madeCountry[2]);
			madeCountryMsg_lb.setFont(new Font("",Font.PLAIN,15));
			madeCountryMsg_lb.setBounds(340, 145, 80, 20);

			language_lb = new JLabel("语言：");
			language_lb.setFont(new Font("",Font.PLAIN,15));
			language_lb.setBounds(225, 180, 50, 20);

			languageMsg_lb = new JLabel(language[2]);
			languageMsg_lb.setFont(new Font("",Font.PLAIN,15));
			languageMsg_lb.setBounds(275, 180, 150, 20);

			bottomMiddle_pl.add(director_lb);
			bottomMiddle_pl.add(directorMsg_lb);
			bottomMiddle_pl.add(zhujue_lb);
			bottomMiddle_pl.add(zhujueMsg_lb);
			bottomMiddle_pl.add(type_lb);
			bottomMiddle_pl.add(typeMsg_lb);
			bottomMiddle_pl.add(madeCountry_lb);
			bottomMiddle_pl.add(madeCountryMsg_lb );
			bottomMiddle_pl.add(language_lb);
			bottomMiddle_pl.add(languageMsg_lb);
			bottomMiddle_pl.add(mvImg_lb);
			bottomMiddle_pl.add(mvName_lb);
		}
		//如果鼠标点击的是只有云知道标签
		else if(obj == yunzhidao_lb) {
			yunzhidao_lb.setOpaque(true);
			yunzhidao_lb.setBackground(new Color(244,36,41));
			yunzhidao_lb.setForeground(Color.WHITE);
			xingqiudazhan_lb.setOpaque(false);
			xingqiudazhan_lb.setForeground(Color.BLACK);
			yewen_lb.setOpaque(false);
			yewen_lb.setForeground(Color.BLACK);
			bangexiju_lb.setOpaque(false);
			bangexiju_lb.setForeground(Color.BLACK);
			tejindui_lb.setOpaque(false);
			tejindui_lb.setForeground(Color.BLACK);
			bottomMiddle_pl.removeAll();
			bottom_pl.repaint();
			mv_img = new ImageIcon(CinemaFrame.class.getResource(mvImg[4]));
			mvImg_lb = new JLabel(mv_img);//下部面板电影图片标签
			mvImg_lb.setBounds(25, 0, 152, 200);
			mvName_lb = new JLabel(MvName[4]);//下部面板电影名字标签
			mvName_lb.setFont(new Font("",Font.PLAIN,20));
			mvName_lb.setBounds(225, 5, 196, 30);
			mvName_lb.setForeground(Color.RED);
			director_lb = new JLabel("导演：");
			director_lb.setBounds(225, 40, 60, 20);
			director_lb.setFont(new Font("",Font.PLAIN,15));
			directorMsg_lb = new JLabel(director[4]);
			directorMsg_lb.setFont(new Font("",Font.PLAIN,15));
			directorMsg_lb.setBounds(275, 40, 80, 20);

			zhujue_lb = new JLabel("主演：");
			zhujue_lb.setFont(new Font("",Font.PLAIN,15));
			zhujue_lb.setBounds(225, 75, 60, 20);
			zhujueMsg_lb = new JLabel(zhujue[4]);
			zhujueMsg_lb.setFont(new Font("",Font.PLAIN,15));
			zhujueMsg_lb.setBounds(275, 75,300, 20);

			type_lb = new JLabel("类型：");
			type_lb.setFont(new Font("",Font.PLAIN,15)); 
			type_lb.setBounds(225, 110, 60, 20);

			typeMsg_lb = new JLabel(type[4]);
			typeMsg_lb.setFont(new Font("",Font.PLAIN,15));
			typeMsg_lb.setBounds(275, 110,120, 20);

			madeCountry_lb = new JLabel("制作国家/地区：");
			madeCountry_lb.setFont(new Font("",Font.PLAIN,15));
			madeCountry_lb.setBounds(225, 145, 120, 20);

			madeCountryMsg_lb = new JLabel(madeCountry[4]);
			madeCountryMsg_lb.setFont(new Font("",Font.PLAIN,15));
			madeCountryMsg_lb.setBounds(340, 145, 80, 20);

			language_lb = new JLabel("语言：");
			language_lb.setFont(new Font("",Font.PLAIN,15));
			language_lb.setBounds(225, 180, 50, 20);

			languageMsg_lb = new JLabel(language[4]);
			languageMsg_lb.setFont(new Font("",Font.PLAIN,15));
			languageMsg_lb.setBounds(275, 180, 150, 20);

			bottomMiddle_pl.add(director_lb);
			bottomMiddle_pl.add(directorMsg_lb);
			bottomMiddle_pl.add(zhujue_lb);
			bottomMiddle_pl.add(zhujueMsg_lb);
			bottomMiddle_pl.add(type_lb);
			bottomMiddle_pl.add(typeMsg_lb);
			bottomMiddle_pl.add(madeCountry_lb);
			bottomMiddle_pl.add(madeCountryMsg_lb );
			bottomMiddle_pl.add(language_lb);
			bottomMiddle_pl.add(languageMsg_lb);
			bottomMiddle_pl.add(mvImg_lb);
			bottomMiddle_pl.add(mvName_lb);
		}
		
		//如果鼠标点击的是半个喜剧标签
		else if(obj == bangexiju_lb) {
			bangexiju_lb.setOpaque(true);
			bangexiju_lb.setBackground(new Color(244,36,41));
			bangexiju_lb.setForeground(Color.WHITE);
			xingqiudazhan_lb.setOpaque(false);
			xingqiudazhan_lb.setForeground(Color.BLACK);
			yunzhidao_lb.setOpaque(false);
			yunzhidao_lb.setForeground(Color.BLACK);
			yewen_lb.setOpaque(false);
			yewen_lb.setForeground(Color.BLACK);
			tejindui_lb.setOpaque(false);
			tejindui_lb.setForeground(Color.BLACK);
			bottomMiddle_pl.removeAll();
			bottom_pl.repaint();
			mv_img = new ImageIcon(CinemaFrame.class.getResource(mvImg[1]));
			mvImg_lb = new JLabel(mv_img);//下部面板电影图片标签
			mvImg_lb.setBounds(25, 0, 152, 200);
			mvName_lb = new JLabel(MvName[1]);//下部面板电影名字标签
			mvName_lb.setFont(new Font("",Font.PLAIN,20));
			mvName_lb.setBounds(225, 5, 196, 30);
			mvName_lb.setForeground(Color.RED);
			director_lb = new JLabel("导演：");
			director_lb.setBounds(225, 40, 60, 20);
			director_lb.setFont(new Font("",Font.PLAIN,15));
			directorMsg_lb = new JLabel(director[1]);
			directorMsg_lb.setFont(new Font("",Font.PLAIN,15));
			directorMsg_lb.setBounds(275, 40, 80, 20);

			zhujue_lb = new JLabel("主演：");
			zhujue_lb.setFont(new Font("",Font.PLAIN,15));
			zhujue_lb.setBounds(225, 75, 60, 20);
			zhujueMsg_lb = new JLabel(zhujue[1]);
			zhujueMsg_lb.setFont(new Font("",Font.PLAIN,15));
			zhujueMsg_lb.setBounds(275, 75,300, 20);

			type_lb = new JLabel("类型：");
			type_lb.setFont(new Font("",Font.PLAIN,15)); 
			type_lb.setBounds(225, 110, 60, 20);

			typeMsg_lb = new JLabel(type[1]);
			typeMsg_lb.setFont(new Font("",Font.PLAIN,15));
			typeMsg_lb.setBounds(275, 110,120, 20);

			madeCountry_lb = new JLabel("制作国家/地区：");
			madeCountry_lb.setFont(new Font("",Font.PLAIN,15));
			madeCountry_lb.setBounds(225, 145, 120, 20);

			madeCountryMsg_lb = new JLabel(madeCountry[1]);
			madeCountryMsg_lb.setFont(new Font("",Font.PLAIN,15));
			madeCountryMsg_lb.setBounds(340, 145, 80, 20);

			language_lb = new JLabel("语言：");
			language_lb.setFont(new Font("",Font.PLAIN,15));
			language_lb.setBounds(225, 180, 50, 20);

			languageMsg_lb = new JLabel(language[1]);
			languageMsg_lb.setFont(new Font("",Font.PLAIN,15));
			languageMsg_lb.setBounds(275, 180, 150, 20);

			bottomMiddle_pl.add(director_lb);
			bottomMiddle_pl.add(directorMsg_lb);
			bottomMiddle_pl.add(zhujue_lb);
			bottomMiddle_pl.add(zhujueMsg_lb);
			bottomMiddle_pl.add(type_lb);
			bottomMiddle_pl.add(typeMsg_lb);
			bottomMiddle_pl.add(madeCountry_lb);
			bottomMiddle_pl.add(madeCountryMsg_lb );
			bottomMiddle_pl.add(language_lb);
			bottomMiddle_pl.add(languageMsg_lb);
			bottomMiddle_pl.add(mvImg_lb);
			bottomMiddle_pl.add(mvName_lb);
		}	MvName[0]="叶问4";
		MvName[1]="半个喜剧";
		MvName[2]="星球大战";
		MvName[3]="特警队";
		MvName[4]="只有云知道";
		//如果鼠标点击的是特警队标签
		if(obj == tejindui_lb) {
			tejindui_lb.setOpaque(true);
			tejindui_lb.setBackground(new Color(244,36,41));
			tejindui_lb.setForeground(Color.WHITE);
			xingqiudazhan_lb.setOpaque(false);
			xingqiudazhan_lb.setForeground(Color.BLACK);
			yunzhidao_lb.setOpaque(false);
			yunzhidao_lb.setForeground(Color.BLACK);
			bangexiju_lb.setOpaque(false);
			bangexiju_lb.setForeground(Color.BLACK);
			yewen_lb.setOpaque(false);
			yewen_lb.setForeground(Color.BLACK);
			bottomMiddle_pl.removeAll();
			bottom_pl.repaint();
			mv_img = new ImageIcon(CinemaFrame.class.getResource(mvImg[3]));
			mvImg_lb = new JLabel(mv_img);//下部面板电影图片标签
			mvImg_lb.setBounds(25, 0, 152, 200);
			mvName_lb = new JLabel(MvName[3]);//下部面板电影名字标签
			mvName_lb.setFont(new Font("",Font.PLAIN,20));
			mvName_lb.setBounds(225, 5, 196, 30);
			mvName_lb.setForeground(Color.RED);
			director_lb = new JLabel("导演：");
			director_lb.setBounds(225, 40, 60, 20);
			director_lb.setFont(new Font("",Font.PLAIN,15));
			directorMsg_lb = new JLabel(director[3]);
			directorMsg_lb.setFont(new Font("",Font.PLAIN,15));
			directorMsg_lb.setBounds(275, 40, 80, 20);

			zhujue_lb = new JLabel("主演：");
			zhujue_lb.setFont(new Font("",Font.PLAIN,15));
			zhujue_lb.setBounds(225, 75, 60, 20);
			zhujueMsg_lb = new JLabel(zhujue[3]);
			zhujueMsg_lb.setFont(new Font("",Font.PLAIN,15));
			zhujueMsg_lb.setBounds(275, 75,300, 20);

			type_lb = new JLabel("类型：");
			type_lb.setFont(new Font("",Font.PLAIN,15)); 
			type_lb.setBounds(225, 110, 60, 20);

			typeMsg_lb = new JLabel(type[3]);
			typeMsg_lb.setFont(new Font("",Font.PLAIN,15));
			typeMsg_lb.setBounds(275, 110,120, 20);

			madeCountry_lb = new JLabel("制作国家/地区：");
			madeCountry_lb.setFont(new Font("",Font.PLAIN,15));
			madeCountry_lb.setBounds(225, 145, 120, 20);

			madeCountryMsg_lb = new JLabel(madeCountry[3]);
			madeCountryMsg_lb.setFont(new Font("",Font.PLAIN,15));
			madeCountryMsg_lb.setBounds(340, 145, 80, 20);

			language_lb = new JLabel("语言：");
			language_lb.setFont(new Font("",Font.PLAIN,15));
			language_lb.setBounds(225, 180, 50, 20);

			languageMsg_lb = new JLabel(language[3]);
			languageMsg_lb.setFont(new Font("",Font.PLAIN,15));
			languageMsg_lb.setBounds(275, 180, 150, 20);

			bottomMiddle_pl.add(director_lb);
			bottomMiddle_pl.add(directorMsg_lb);
			bottomMiddle_pl.add(zhujue_lb);
			bottomMiddle_pl.add(zhujueMsg_lb);
			bottomMiddle_pl.add(type_lb);
			bottomMiddle_pl.add(typeMsg_lb);
			bottomMiddle_pl.add(madeCountry_lb);
			bottomMiddle_pl.add(madeCountryMsg_lb );
			bottomMiddle_pl.add(language_lb);
			bottomMiddle_pl.add(languageMsg_lb);
			bottomMiddle_pl.add(mvImg_lb);
			bottomMiddle_pl.add(mvName_lb);
		}
	}

	@Override
	public void mousePressed(MouseEvent e) {
		// TODO Auto-generated method stub

	}

	@Override
	public void mouseReleased(MouseEvent e) {
		// TODO Auto-generated method stub

	}

	@Override
	public void mouseEntered(MouseEvent e) {
		// TODO Auto-generated method stub

	}

	@Override
	public void mouseExited(MouseEvent e) {
		// TODO Auto-generated method stub

	}

}
